package com.loong.system.model;

import com.loong.common.mybatis.entity.BaseEntity;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "system_letter_template")
public class SystemLetterTemplate extends BaseEntity {

    /**
     * 发送时间
     */
    @Column(name = "send_time")
    private Date sendTime;

    /**
     * vip等级
     */
    @Column(name = "vip_level")
    private Integer vipLevel;

    /**
     * 用户等级
     */
    @Column(name = "user_level")
    private Integer userLevel;

    /**
     * 用户类型
     */
    @Column(name = "user_type")
    private Integer userType;

    /**
     * 状态：0撤销 1启用
     */
    private Integer status;

    /**
     * 标签
     */
    private String tag;

    /**
     * 发送人id
     */
    @Column(name = "sender_id")
    private Long senderId;

    /**
     * 发送人
     */
    private String sender;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 用户ids：多个id之间用逗号隔开
     */
    @Column(name = "user_ids")
    private String userIds;
}